<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta charset="utf-8" />
		<title>HTML前端学习</title>
		<meta name="author" content="Joy Du(飘零雾雨), dooyoe@gmail.com" />
		<meta name="copyright" content="www.doyoe.com" />
		<style>
			
			.container{
				
				background-color: antiquewhite;
				width: 300px;
				height: 300px;
			}
			
			.float{
				float: left;
				width: 150px;
				height: 100px;
				border: solid 1px red;
				box-sizing: content-box;
			}
			
			.f1{
				background-color: azure;
				
			}
			.f2{
				background-color: cadetblue;
			}
			
		</style>
	</head>
	<body>
		
			<div class="container" >
				
				<div class="float f1" >1</div>
				<div class="float f2" >2</div>
			</div>
 
	</body>
</html>